package com.mapforge.map.tools.selection;

import java.awt.Point;

public class SelectionToolState {
	private Point startPoint;
	private Point endPoint;

	public SelectionToolState(Point startPoint, Point endPoint) {
		this.startPoint = startPoint;
		this.endPoint = endPoint;
	}
	
	public void restoreState(AbstractSelectionTool tool) {
		tool.setAnchorPoint(startPoint);
		tool.setMovingPoint(endPoint);
	}
}
